<?php

namespace App\Http\Requests\Common\Captcha;
use App\Http\Requests\Request;


class SmsCodeRequest extends Request {
    public function authorize(){
        return true;
    }
    public function rules(){
        return [
            'mobile'=>'required|mobile_verification',
            'code' => 'required|captcha'
        ];
    }
    public function messages(){
        return [
            'mobile.required' =>'手机号码不能为空！',
            'mobile.mobile_verification'=>'请输入正确的手机号码',
            'code.required' =>'验证码不能为空！',
            'code.captcha' => '验证码错误，请重新输入！'
        ];
    }
}